<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><{$row.title}></title> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<{$__PUBLIC__}>css/common_uqcms.css">
<link rel="stylesheet" type="text/css" href="<{$__APP__}>public/css/public.css"> 
<link rel="stylesheet" type="text/css" href="<{$__APP__}>public/css/help.css">
<script type="text/javascript" src="<{$__PUBLIC__}>js/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="<{$__PUBLIC__}>bootstrap/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<{$__PUBLIC__}>layer/layer.css">
<script type="text/javascript" src="<{$__PUBLIC__}>bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="<{$__PUBLIC__}>layer/layer.js"></script>
</head>
<body>
<{include file="default/header.html"}>
<style>
	.dliu{
		margin:0 auto;
		width: 360px;
	}
	.table>tbody>tr>th{
		width: 160px;
		text-align: center;
	}
	.table>tbody>tr>td{
		text-align: left;
		padding-left: 10px;
	}
	.huise{
		background-color: #666;
	}
	.huise:hover{
		background-color: #666;
	}
</style>
<div class="main_bar">
	<div class="main">
		<div class="hcontent">
			<div class="rcon">
				<div class="dliu">
					<table class="table table-bordered">
						<tbody>
						<tr>
							<th style="">标题</th>
							<td><{$detail.title}></td>
						</tr>
						<tr>
							<th>分类</th>
							<td><{$detail.name}></td>
						</tr>
						<{foreach from=$detail.goods_guige item=guige}>
						<tr>
							<{foreach from=$guige item=gui key=k}>
							<{if $k == '0'}>
							<th><{$gui}></th>
							<{elseif $k == '1'}>
							<td><{$gui}></td>
							<{/if}>
							<{/foreach}>
						</tr>
						<{/foreach}>
						<tr>
							<th>发布人</th>
							<td><{$detail.nick}></td>
						</tr>
						<tr>
							<th>发布时间</th>
							<td><{$detail.addtime}></td>
						</tr>
						<tr>
							<th>竞标状态</th>
							<td><{if $detail.tbzt=='0'}>竞标进行中<{else}>竞标已完成<{/if}></td>
						</tr>
						<tr>
							<th>竞标人数</th>
							<td><{$detail.tbs}></td>
						</tr>
						<tr>
							<th>备注</th>
							<td><{$detail.bz}></td>
						</tr>
						<tr id="tb_btn">
							<th colspan="2"><a href="javascript:;" class="btn btn-danger <{if $detail.tbzt=='1'}>huise<{else}>toubiao<{/if}>" style="width:330px ">投标</a></th>
						</tr>
						</tbody>
					</table>
					<form action="?m=seller&a=add_form" method="post" id="form" style="display: none;">
						<div class="form-group">
							<label for="remark">备注</label>
							<input type="text" class="form-control" id="remark" name="remark" placeholder="请填写你的优势">
							</textarea>
						</div>
						<div class="form-group">
							<label for="price">报价</label>
							<input type="text" class="form-control" id="price" name="price" placeholder="报价">
						</div>
						<input type="hidden" name="tb_id" value="<{$detail.id}>"/>
						<button type="submit" class="btn btn-danger" onclick="return yanzheng()" style="width:330px">投标</button>
					</form>
				</div>
			</div> 
		</div>
		
	</div>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        $(".toubiao").click(function () {
            $("#tb_btn").hide();
			$("#form").show();
        });
	});
    function yanzheng() {
        var remark = $("#remark").val();
        var price = $("#price").val();
        if(remark == ''){
            layer.msg('备注不能为空',{time:2000});
            return false;
		}
        if(price == ''){
            layer.msg('报价不能为空',{time:2000});
            return false;
        }
    }
</script>
<{include file="default/footer.html"}> 
